<template>
  <el-result title="404" sub-title="未找到你请求的地址">
    <template #icon>
      <el-image
        src="https://img-blog.csdnimg.cn/9eb1d85a417f4ed1ba7107f149ce3da1.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAbHl0LXRvcA==,size_16,color_FFFFFF,t_70,g_se,x_16"
      />
    </template>
    <template #extra>
      <el-button type="primary" @click="onGoBack">返回上一页</el-button>
    </template>
  </el-result>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';

const router = useRouter();
const onGoBack = () => {
  router.go(-1);
};
</script>

<style scoped lang="scss"></style>
